package com.tianqingwl.gsystem.content.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @author jack, 984137184@qq.com
 * @since 2020年7月27日 22点52分
 */
@Data
public class ContentType {
    @TableId(type = IdType.AUTO)
    private Long typeId;
    private String typeName;
    private Long parentId;
    private Integer type;//1类别 2标签
    private String title;
    private String description;
    private String keywords;
    private Integer orderNum;
    @TableField(exist = false)
    private List<ContentType> childList = new ArrayList<>();
}
